-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: introduce starknet verify, verifier set #48
Conversation
5d534f9
to
25b4340
Compare
info!("ready to verify verifier set in poll",); | ||
|
||
let vote = transaction_response.map_or(Vote::NotFound, |tx_receipt| { | ||
verify_verifier_set(&tx_receipt.1, &verifier_set, &source_gateway_address) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is tx_receipt.1
always the gateway event itself?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The assumption here is, that ampd receives to "verify" a correct id. If its not then verify_verifier_set would return Vote::NotFound, which is the expected behaviour.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please add some tests? I left guidelines for those.
If you have questions, I believe I can help, just ping me.
Description
Introduce starknet verify verifier set in ampd.
Todos
Steps to Test
Expected Behaviour
Other Notes